[INFO] cloning repository https://github.com/elitt565/ProducerConsumer
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/elitt565/ProducerConsumer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felitt565%2FProducerConsumer", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felitt565%2FProducerConsumer'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 54d2a7cec58794102b774bad4a0d12f1a631c017
[INFO] fixing elitt565/ProducerConsumer against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felitt565%2FProducerConsumer" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/elitt565/ProducerConsumer
[INFO] finished tweaking git repo https://github.com/elitt565/ProducerConsumer
[INFO] tweaked toml for git repo https://github.com/elitt565/ProducerConsumer written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/elitt565/ProducerConsumer on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/elitt565/ProducerConsumer already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] bfcc018b1f0573e05a9d837b616de9c9ff52d1c4742ed1be4298f41e54cb0796
[INFO] running `Command { std: "docker" "start" "bfcc018b1f0573e05a9d837b616de9c9ff52d1c4742ed1be4298f41e54cb0796", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "bfcc018b1f0573e05a9d837b616de9c9ff52d1c4742ed1be4298f41e54cb0796" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "bfcc018b1f0573e05a9d837b616de9c9ff52d1c4742ed1be4298f41e54cb0796", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "bfcc018b1f0573e05a9d837b616de9c9ff52d1c4742ed1be4298f41e54cb0796" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Compiling crossbeam-utils v0.8.15
[INFO] [stderr]    Compiling memoffset v0.8.0
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.14
[INFO] [stderr]    Compiling crossbeam-queue v0.3.8
[INFO] [stderr]     Checking once_cell v1.17.1
[INFO] [stderr]     Checking crossbeam-channel v0.5.8
[INFO] [stderr]     Checking crossbeam-deque v0.8.3
[INFO] [stderr]     Checking crossbeam v0.8.2
[INFO] [stderr]     Checking producer_consumer v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating src/main.rs from 2021 edition to 2024
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:40:35
[INFO] [stdout]    |
[INFO] [stdout] 40 |         bank_obj = *Lazy::get_mut(&mut lazy_bank_obj).unwrap();
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 40 |         bank_obj = *Lazy::get_mut(&raw mut lazy_bank_obj).unwrap();
[INFO] [stdout]    |                                    +++
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 16 - static mut lazy_bank_obj: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout] 16 + static lazy_bank_obj: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             ledger.push_back(l);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:98:16
[INFO] [stdout]    |
[INFO] [stdout] 98 |         while !ledger.is_empty() {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:99:21
[INFO] [stdout]    |
[INFO] [stdout] 99 |             let l = ledger.pop_front().unwrap();
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:37:17
[INFO] [stdout]    |
[INFO] [stdout] 37 |                 accounts.push(acc);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:58:25
[INFO] [stdout]    |
[INFO] [stdout] 58 |             let mut g = accounts.get(accountID).unwrap().lock.lock().unwrap();
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:59:23
[INFO] [stdout]    |
[INFO] [stdout] 59 |             let acc = accounts.get_mut(accountID).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:87:25
[INFO] [stdout]    |
[INFO] [stdout] 87 |             let mut g = accounts.get(accountID).unwrap().lock.lock().unwrap();
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:88:16
[INFO] [stdout]    |
[INFO] [stdout] 88 |             if accounts.get(accountID).unwrap().balance < amount {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:93:23
[INFO] [stdout]    |
[INFO] [stdout] 93 |             let acc = accounts.get_mut(accountID).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:123:29
[INFO] [stdout]     |
[INFO] [stdout] 123 |                 let mut g = accounts.get(src_id).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:139:26
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let mut g1 = accounts.get(smaller).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:140:26
[INFO] [stdout]     |
[INFO] [stdout] 140 |             let mut g2 = accounts.get(larger).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:141:16
[INFO] [stdout]     |
[INFO] [stdout] 141 |             if accounts.get(src_id).unwrap().balance < amount {
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:147:26
[INFO] [stdout]     |
[INFO] [stdout] 147 |             let srcAcc = accounts.get_mut(src_id).unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:148:27
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let destAcc = accounts.get_mut(dest_id).unwrap();
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:166:29
[INFO] [stdout]     |
[INFO] [stdout] 166 |                 let mut g = accounts.get(i as usize).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:167:41
[INFO] [stdout]     |
[INFO] [stdout] 167 |                 println!("ID# {} | {}", accounts.get(i as usize).unwrap().accountID, accounts.get(i as usize).unwrap().balance);
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:167:86
[INFO] [stdout]     |
[INFO] [stdout] 167 |                 println!("ID# {} | {}", accounts.get(i as usize).unwrap().accountID, accounts.get(i as usize).unwrap().balance);
[INFO] [stdout]     |                                                                                      ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:173:47
[INFO] [stdout]     |
[INFO] [stdout] 173 |             println!("Success: {} Fails: {}", num_succ, num_fail);
[INFO] [stdout]     |                                               ^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:173:57
[INFO] [stdout]     |
[INFO] [stdout] 173 |             println!("Success: {} Fails: {}", num_succ, num_fail);
[INFO] [stdout]     |                                                         ^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:40:35
[INFO] [stdout]    |
[INFO] [stdout] 40 |         bank_obj = *Lazy::get_mut(&mut lazy_bank_obj).unwrap();
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 40 |         bank_obj = *Lazy::get_mut(&raw mut lazy_bank_obj).unwrap();
[INFO] [stdout]    |                                    +++
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 16 - static mut lazy_bank_obj: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout] 16 + static lazy_bank_obj: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             ledger.push_back(l);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:98:16
[INFO] [stdout]    |
[INFO] [stdout] 98 |         while !ledger.is_empty() {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:99:21
[INFO] [stdout]    |
[INFO] [stdout] 99 |             let l = ledger.pop_front().unwrap();
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:37:17
[INFO] [stdout]    |
[INFO] [stdout] 37 |                 accounts.push(acc);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:58:25
[INFO] [stdout]    |
[INFO] [stdout] 58 |             let mut g = accounts.get(accountID).unwrap().lock.lock().unwrap();
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:59:23
[INFO] [stdout]    |
[INFO] [stdout] 59 |             let acc = accounts.get_mut(accountID).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:87:25
[INFO] [stdout]    |
[INFO] [stdout] 87 |             let mut g = accounts.get(accountID).unwrap().lock.lock().unwrap();
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:88:16
[INFO] [stdout]    |
[INFO] [stdout] 88 |             if accounts.get(accountID).unwrap().balance < amount {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.68s
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:93:23
[INFO] [stdout]    |
[INFO] [stdout] 93 |             let acc = accounts.get_mut(accountID).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:123:29
[INFO] [stdout]     |
[INFO] [stdout] 123 |                 let mut g = accounts.get(src_id).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:139:26
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let mut g1 = accounts.get(smaller).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:140:26
[INFO] [stdout]     |
[INFO] [stdout] 140 |             let mut g2 = accounts.get(larger).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:141:16
[INFO] [stdout]     |
[INFO] [stdout] 141 |             if accounts.get(src_id).unwrap().balance < amount {
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:147:26
[INFO] [stdout]     |
[INFO] [stdout] 147 |             let srcAcc = accounts.get_mut(src_id).unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:148:27
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let destAcc = accounts.get_mut(dest_id).unwrap();
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:166:29
[INFO] [stdout]     |
[INFO] [stdout] 166 |                 let mut g = accounts.get(i as usize).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:167:41
[INFO] [stdout]     |
[INFO] [stdout] 167 |                 println!("ID# {} | {}", accounts.get(i as usize).unwrap().accountID, accounts.get(i as usize).unwrap().balance);
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:167:86
[INFO] [stdout]     |
[INFO] [stdout] 167 |                 println!("ID# {} | {}", accounts.get(i as usize).unwrap().accountID, accounts.get(i as usize).unwrap().balance);
[INFO] [stdout]     |                                                                                      ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:173:47
[INFO] [stdout]     |
[INFO] [stdout] 173 |             println!("Success: {} Fails: {}", num_succ, num_fail);
[INFO] [stdout]     |                                               ^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:173:57
[INFO] [stdout]     |
[INFO] [stdout] 173 |             println!("Success: {} Fails: {}", num_succ, num_fail);
[INFO] [stdout]     |                                                         ^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] crater-edition-check: producer_consumer v0.1.0 (/opt/rustwide/workdir) updating edition from 2021 to 2024
[INFO] [stderr]     Checking producer_consumer v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/ledger.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/ledger.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/ledger.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/ledger.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ledger.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let mut b = Bank::new(10);
[INFO] [stdout]    |         ----^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ledger/bank.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 27 |         let mut b = Bank {
[INFO] [stdout]    |             ----^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ledger/bank.rs:58:17
[INFO] [stdout]    |
[INFO] [stdout] 58 |             let mut g = accounts.get(accountID).unwrap().lock.lock().unwrap();
[INFO] [stdout]    |                 ----^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ledger/bank.rs:87:17
[INFO] [stdout]    |
[INFO] [stdout] 87 |             let mut g = accounts.get(accountID).unwrap().lock.lock().unwrap();
[INFO] [stdout]    |                 ----^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:123:21
[INFO] [stdout]     |
[INFO] [stdout] 123 |                 let mut g = accounts.get(src_id).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                     ----^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:139:17
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let mut g1 = accounts.get(smaller).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                 ----^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:140:17
[INFO] [stdout]     |
[INFO] [stdout] 140 |             let mut g2 = accounts.get(larger).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                 ----^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:166:21
[INFO] [stdout]     |
[INFO] [stdout] 166 |                 let mut g = accounts.get(i as usize).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                     ----^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:171:13
[INFO] [stdout]     |
[INFO] [stdout] 171 |         let mut g = bank_lock.lock().unwrap();
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:184:13
[INFO] [stdout]     |
[INFO] [stdout] 184 |         let mut g = bank_lock.lock().unwrap();
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:198:13
[INFO] [stdout]     |
[INFO] [stdout] 198 |         let mut g = bank_lock.lock().unwrap();
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `ledger_lock` should have an upper case name
[INFO] [stdout]   --> src/ledger.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | static ledger_lock: Mutex<u32> = Mutex::new(0);
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 14 - static ledger_lock: Mutex<u32> = Mutex::new(0);
[INFO] [stdout] 14 + static LEDGER_LOCK: Mutex<u32> = Mutex::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `ledger` should have an upper case name
[INFO] [stdout]   --> src/ledger.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | static mut ledger: VecDeque<Ledger> = VecDeque::new();
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 15 - static mut ledger: VecDeque<Ledger> = VecDeque::new();
[INFO] [stdout] 15 + static mut LEDGER: VecDeque<Ledger> = VecDeque::new();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `lazy_bank_obj` should have an upper case name
[INFO] [stdout]   --> src/ledger.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | static mut lazy_bank_obj: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 16 - static mut lazy_bank_obj: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout] 16 + static mut LAZY_BANK_OBJ: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `InitBank` should have a snake case name
[INFO] [stdout]   --> src/ledger.rs:36:8
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub fn InitBank(num_workers: u32, filename: String) {
[INFO] [stdout]    |        ^^^^^^^^ help: convert the identifier to snake case: `init_bank`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]   --> src/ledger.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |         &*lazy_bank_obj;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let _ = &*lazy_bank_obj;
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:40:35
[INFO] [stdout]    |
[INFO] [stdout] 40 |         bank_obj = *Lazy::get_mut(&mut lazy_bank_obj).unwrap();
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 40 |         bank_obj = *Lazy::get_mut(&raw mut lazy_bank_obj).unwrap();
[INFO] [stdout]    |                                    +++
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 16 - static mut lazy_bank_obj: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout] 16 + static lazy_bank_obj: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             ledger.push_back(l);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `workerID` should have a snake case name
[INFO] [stdout]   --> src/ledger.rs:95:11
[INFO] [stdout]    |
[INFO] [stdout] 95 | fn worker(workerID: u32, bank_obj: &mut Bank) {
[INFO] [stdout]    |           ^^^^^^^^ help: convert the identifier to snake case: `worker_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:98:16
[INFO] [stdout]    |
[INFO] [stdout] 98 |         while !ledger.is_empty() {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:99:21
[INFO] [stdout]    |
[INFO] [stdout] 99 |             let l = ledger.pop_front().unwrap();
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `bank_lock` should have an upper case name
[INFO] [stdout]  --> src/ledger/bank.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | static bank_lock: Mutex<u32> = Mutex::new(0);
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 3 - static bank_lock: Mutex<u32> = Mutex::new(0);
[INFO] [stdout] 3 + static BANK_LOCK: Mutex<u32> = Mutex::new(0);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `accounts` should have an upper case name
[INFO] [stdout]  --> src/ledger/bank.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | static mut accounts: Vec<Account> = Vec::new();
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 4 - static mut accounts: Vec<Account> = Vec::new();
[INFO] [stdout] 4 + static mut ACCOUNTS: Vec<Account> = Vec::new();
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `num_succ` should have an upper case name
[INFO] [stdout]  --> src/ledger/bank.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | static mut num_succ: u32 = 0;
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 5 - static mut num_succ: u32 = 0;
[INFO] [stdout] 5 + static mut NUM_SUCC: u32 = 0;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `num_fail` should have an upper case name
[INFO] [stdout]  --> src/ledger/bank.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | static mut num_fail: u32 = 0;
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 6 - static mut num_fail: u32 = 0;
[INFO] [stdout] 6 + static mut NUM_FAIL: u32 = 0;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ledger.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let mut b = Bank::new(10);
[INFO] [stdout]    |         ----^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `accountID` should have a snake case name
[INFO] [stdout]  --> src/ledger/bank.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 |     accountID: u32,
[INFO] [stdout]   |     ^^^^^^^^^ help: convert the identifier to snake case: `account_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `N` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:26:16
[INFO] [stdout]    |
[INFO] [stdout] 26 |     pub fn new(N: u32) -> Bank {
[INFO] [stdout]    |                ^ help: convert the identifier to snake case: `n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:37:17
[INFO] [stdout]    |
[INFO] [stdout] 37 |                 accounts.push(acc);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `workerID` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:56:31
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub fn deposit(&mut self, workerID: u32, ledgerID: u32, accountID: usize, amount: u32) -> i32 {
[INFO] [stdout]    |                               ^^^^^^^^ help: convert the identifier to snake case: `worker_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ledgerID` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:56:46
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub fn deposit(&mut self, workerID: u32, ledgerID: u32, accountID: usize, amount: u32) -> i32 {
[INFO] [stdout]    |                                              ^^^^^^^^ help: convert the identifier to snake case: `ledger_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `accountID` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:56:61
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub fn deposit(&mut self, workerID: u32, ledgerID: u32, accountID: usize, amount: u32) -> i32 {
[INFO] [stdout]    |                                                             ^^^^^^^^^ help: convert the identifier to snake case: `account_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:58:25
[INFO] [stdout]    |
[INFO] [stdout] 58 |             let mut g = accounts.get(accountID).unwrap().lock.lock().unwrap();
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:59:23
[INFO] [stdout]    |
[INFO] [stdout] 59 |             let acc = accounts.get_mut(accountID).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `workerID` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:83:32
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub fn withdraw(&mut self, workerID: u32, ledgerID: u32, accountID: usize, amount: u32) -> i32 {
[INFO] [stdout]    |                                ^^^^^^^^ help: convert the identifier to snake case: `worker_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ledgerID` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:83:47
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub fn withdraw(&mut self, workerID: u32, ledgerID: u32, accountID: usize, amount: u32) -> i32 {
[INFO] [stdout]    |                                               ^^^^^^^^ help: convert the identifier to snake case: `ledger_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `accountID` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:83:62
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub fn withdraw(&mut self, workerID: u32, ledgerID: u32, accountID: usize, amount: u32) -> i32 {
[INFO] [stdout]    |                                                              ^^^^^^^^^ help: convert the identifier to snake case: `account_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:87:25
[INFO] [stdout]    |
[INFO] [stdout] 87 |             let mut g = accounts.get(accountID).unwrap().lock.lock().unwrap();
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:88:16
[INFO] [stdout]    |
[INFO] [stdout] 88 |             if accounts.get(accountID).unwrap().balance < amount {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:93:23
[INFO] [stdout]    |
[INFO] [stdout] 93 |             let acc = accounts.get_mut(accountID).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `workerID` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:118:32
[INFO] [stdout]     |
[INFO] [stdout] 118 |     pub fn transfer(&mut self, workerID: u32, ledgerID: u32, src_id: usize, dest_id: usize, amount: u32) -> i32 {
[INFO] [stdout]     |                                ^^^^^^^^ help: convert the identifier to snake case: `worker_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ledgerID` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:118:47
[INFO] [stdout]     |
[INFO] [stdout] 118 |     pub fn transfer(&mut self, workerID: u32, ledgerID: u32, src_id: usize, dest_id: usize, amount: u32) -> i32 {
[INFO] [stdout]     |                                               ^^^^^^^^ help: convert the identifier to snake case: `ledger_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:123:29
[INFO] [stdout]     |
[INFO] [stdout] 123 |                 let mut g = accounts.get(src_id).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `srcSmaller` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:129:13
[INFO] [stdout]     |
[INFO] [stdout] 129 |         let srcSmaller = src_id < dest_id;
[INFO] [stdout]     |             ^^^^^^^^^^ help: convert the identifier to snake case: `src_smaller`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:139:26
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let mut g1 = accounts.get(smaller).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:140:26
[INFO] [stdout]     |
[INFO] [stdout] 140 |             let mut g2 = accounts.get(larger).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:141:16
[INFO] [stdout]     |
[INFO] [stdout] 141 |             if accounts.get(src_id).unwrap().balance < amount {
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:147:26
[INFO] [stdout]     |
[INFO] [stdout] 147 |             let srcAcc = accounts.get_mut(src_id).unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `srcAcc` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:147:17
[INFO] [stdout]     |
[INFO] [stdout] 147 |             let srcAcc = accounts.get_mut(src_id).unwrap();
[INFO] [stdout]     |                 ^^^^^^ help: convert the identifier to snake case: `src_acc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:148:27
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let destAcc = accounts.get_mut(dest_id).unwrap();
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `destAcc` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:148:17
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let destAcc = accounts.get_mut(dest_id).unwrap();
[INFO] [stdout]     |                 ^^^^^^^ help: convert the identifier to snake case: `dest_acc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:166:29
[INFO] [stdout]     |
[INFO] [stdout] 166 |                 let mut g = accounts.get(i as usize).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:167:41
[INFO] [stdout]     |
[INFO] [stdout] 167 |                 println!("ID# {} | {}", accounts.get(i as usize).unwrap().accountID, accounts.get(i as usize).unwrap().balance);
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:167:86
[INFO] [stdout]     |
[INFO] [stdout] 167 |                 println!("ID# {} | {}", accounts.get(i as usize).unwrap().accountID, accounts.get(i as usize).unwrap().balance);
[INFO] [stdout]     |                                                                                      ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:173:47
[INFO] [stdout]     |
[INFO] [stdout] 173 |             println!("Success: {} Fails: {}", num_succ, num_fail);
[INFO] [stdout]     |                                               ^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:173:57
[INFO] [stdout]     |
[INFO] [stdout] 173 |             println!("Success: {} Fails: {}", num_succ, num_fail);
[INFO] [stdout]     |                                                         ^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `recordSucc` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:183:8
[INFO] [stdout]     |
[INFO] [stdout] 183 |     fn recordSucc(&mut self, message: String) {
[INFO] [stdout]     |        ^^^^^^^^^^ help: convert the identifier to snake case: `record_succ`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `recordFail` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:197:8
[INFO] [stdout]     |
[INFO] [stdout] 197 |     fn recordFail(&mut self, message: String) {
[INFO] [stdout]     |        ^^^^^^^^^^ help: convert the identifier to snake case: `record_fail`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ledger/bank.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 27 |         let mut b = Bank {
[INFO] [stdout]    |             ----^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ledger/bank.rs:58:17
[INFO] [stdout]    |
[INFO] [stdout] 58 |             let mut g = accounts.get(accountID).unwrap().lock.lock().unwrap();
[INFO] [stdout]    |                 ----^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/ledger/bank.rs:87:17
[INFO] [stdout]    |
[INFO] [stdout] 87 |             let mut g = accounts.get(accountID).unwrap().lock.lock().unwrap();
[INFO] [stdout]    |                 ----^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:123:21
[INFO] [stdout]     |
[INFO] [stdout] 123 |                 let mut g = accounts.get(src_id).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                     ----^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:139:17
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let mut g1 = accounts.get(smaller).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                 ----^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:140:17
[INFO] [stdout]     |
[INFO] [stdout] 140 |             let mut g2 = accounts.get(larger).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                 ----^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:166:21
[INFO] [stdout]     |
[INFO] [stdout] 166 |                 let mut g = accounts.get(i as usize).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                     ----^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:171:13
[INFO] [stdout]     |
[INFO] [stdout] 171 |         let mut g = bank_lock.lock().unwrap();
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:184:13
[INFO] [stdout]     |
[INFO] [stdout] 184 |         let mut g = bank_lock.lock().unwrap();
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ledger/bank.rs:198:13
[INFO] [stdout]     |
[INFO] [stdout] 198 |         let mut g = bank_lock.lock().unwrap();
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `producer_consumer` (bin "producer_consumer") due to 21 previous errors; 38 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: static variable `ledger_lock` should have an upper case name
[INFO] [stdout]   --> src/ledger.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | static ledger_lock: Mutex<u32> = Mutex::new(0);
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 14 - static ledger_lock: Mutex<u32> = Mutex::new(0);
[INFO] [stdout] 14 + static LEDGER_LOCK: Mutex<u32> = Mutex::new(0);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `ledger` should have an upper case name
[INFO] [stdout]   --> src/ledger.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | static mut ledger: VecDeque<Ledger> = VecDeque::new();
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 15 - static mut ledger: VecDeque<Ledger> = VecDeque::new();
[INFO] [stdout] 15 + static mut LEDGER: VecDeque<Ledger> = VecDeque::new();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `lazy_bank_obj` should have an upper case name
[INFO] [stdout]   --> src/ledger.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | static mut lazy_bank_obj: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]    |
[INFO] [stdout] 16 - static mut lazy_bank_obj: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout] 16 + static mut LAZY_BANK_OBJ: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `InitBank` should have a snake case name
[INFO] [stdout]   --> src/ledger.rs:36:8
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub fn InitBank(num_workers: u32, filename: String) {
[INFO] [stdout]    |        ^^^^^^^^ help: convert the identifier to snake case: `init_bank`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]   --> src/ledger.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |         &*lazy_bank_obj;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let _ = &*lazy_bank_obj;
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:40:35
[INFO] [stdout]    |
[INFO] [stdout] 40 |         bank_obj = *Lazy::get_mut(&mut lazy_bank_obj).unwrap();
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 40 |         bank_obj = *Lazy::get_mut(&raw mut lazy_bank_obj).unwrap();
[INFO] [stdout]    |                                    +++
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 16 - static mut lazy_bank_obj: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout] 16 + static lazy_bank_obj: Lazy<Bank> = Lazy::new(|| {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             ledger.push_back(l);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `workerID` should have a snake case name
[INFO] [stdout]   --> src/ledger.rs:95:11
[INFO] [stdout]    |
[INFO] [stdout] 95 | fn worker(workerID: u32, bank_obj: &mut Bank) {
[INFO] [stdout]    |           ^^^^^^^^ help: convert the identifier to snake case: `worker_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:98:16
[INFO] [stdout]    |
[INFO] [stdout] 98 |         while !ledger.is_empty() {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger.rs:99:21
[INFO] [stdout]    |
[INFO] [stdout] 99 |             let l = ledger.pop_front().unwrap();
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `bank_lock` should have an upper case name
[INFO] [stdout]  --> src/ledger/bank.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | static bank_lock: Mutex<u32> = Mutex::new(0);
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 3 - static bank_lock: Mutex<u32> = Mutex::new(0);
[INFO] [stdout] 3 + static BANK_LOCK: Mutex<u32> = Mutex::new(0);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `accounts` should have an upper case name
[INFO] [stdout]  --> src/ledger/bank.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | static mut accounts: Vec<Account> = Vec::new();
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 4 - static mut accounts: Vec<Account> = Vec::new();
[INFO] [stdout] 4 + static mut ACCOUNTS: Vec<Account> = Vec::new();
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `num_succ` should have an upper case name
[INFO] [stdout]  --> src/ledger/bank.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | static mut num_succ: u32 = 0;
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 5 - static mut num_succ: u32 = 0;
[INFO] [stdout] 5 + static mut NUM_SUCC: u32 = 0;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static variable `num_fail` should have an upper case name
[INFO] [stdout]  --> src/ledger/bank.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | static mut num_fail: u32 = 0;
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: convert the identifier to upper case
[INFO] [stdout]   |
[INFO] [stdout] 6 - static mut num_fail: u32 = 0;
[INFO] [stdout] 6 + static mut NUM_FAIL: u32 = 0;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `accountID` should have a snake case name
[INFO] [stdout]  --> src/ledger/bank.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 |     accountID: u32,
[INFO] [stdout]   |     ^^^^^^^^^ help: convert the identifier to snake case: `account_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `N` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:26:16
[INFO] [stdout]    |
[INFO] [stdout] 26 |     pub fn new(N: u32) -> Bank {
[INFO] [stdout]    |                ^ help: convert the identifier to snake case: `n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:37:17
[INFO] [stdout]    |
[INFO] [stdout] 37 |                 accounts.push(acc);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `workerID` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:56:31
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub fn deposit(&mut self, workerID: u32, ledgerID: u32, accountID: usize, amount: u32) -> i32 {
[INFO] [stdout]    |                               ^^^^^^^^ help: convert the identifier to snake case: `worker_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ledgerID` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:56:46
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub fn deposit(&mut self, workerID: u32, ledgerID: u32, accountID: usize, amount: u32) -> i32 {
[INFO] [stdout]    |                                              ^^^^^^^^ help: convert the identifier to snake case: `ledger_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `accountID` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:56:61
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub fn deposit(&mut self, workerID: u32, ledgerID: u32, accountID: usize, amount: u32) -> i32 {
[INFO] [stdout]    |                                                             ^^^^^^^^^ help: convert the identifier to snake case: `account_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:58:25
[INFO] [stdout]    |
[INFO] [stdout] 58 |             let mut g = accounts.get(accountID).unwrap().lock.lock().unwrap();
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:59:23
[INFO] [stdout]    |
[INFO] [stdout] 59 |             let acc = accounts.get_mut(accountID).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `workerID` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:83:32
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub fn withdraw(&mut self, workerID: u32, ledgerID: u32, accountID: usize, amount: u32) -> i32 {
[INFO] [stdout]    |                                ^^^^^^^^ help: convert the identifier to snake case: `worker_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ledgerID` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:83:47
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub fn withdraw(&mut self, workerID: u32, ledgerID: u32, accountID: usize, amount: u32) -> i32 {
[INFO] [stdout]    |                                               ^^^^^^^^ help: convert the identifier to snake case: `ledger_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `accountID` should have a snake case name
[INFO] [stdout]   --> src/ledger/bank.rs:83:62
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub fn withdraw(&mut self, workerID: u32, ledgerID: u32, accountID: usize, amount: u32) -> i32 {
[INFO] [stdout]    |                                                              ^^^^^^^^^ help: convert the identifier to snake case: `account_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:87:25
[INFO] [stdout]    |
[INFO] [stdout] 87 |             let mut g = accounts.get(accountID).unwrap().lock.lock().unwrap();
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:88:16
[INFO] [stdout]    |
[INFO] [stdout] 88 |             if accounts.get(accountID).unwrap().balance < amount {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ledger/bank.rs:93:23
[INFO] [stdout]    |
[INFO] [stdout] 93 |             let acc = accounts.get_mut(accountID).unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `workerID` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:118:32
[INFO] [stdout]     |
[INFO] [stdout] 118 |     pub fn transfer(&mut self, workerID: u32, ledgerID: u32, src_id: usize, dest_id: usize, amount: u32) -> i32 {
[INFO] [stdout]     |                                ^^^^^^^^ help: convert the identifier to snake case: `worker_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ledgerID` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:118:47
[INFO] [stdout]     |
[INFO] [stdout] 118 |     pub fn transfer(&mut self, workerID: u32, ledgerID: u32, src_id: usize, dest_id: usize, amount: u32) -> i32 {
[INFO] [stdout]     |                                               ^^^^^^^^ help: convert the identifier to snake case: `ledger_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:123:29
[INFO] [stdout]     |
[INFO] [stdout] 123 |                 let mut g = accounts.get(src_id).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `srcSmaller` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:129:13
[INFO] [stdout]     |
[INFO] [stdout] 129 |         let srcSmaller = src_id < dest_id;
[INFO] [stdout]     |             ^^^^^^^^^^ help: convert the identifier to snake case: `src_smaller`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:139:26
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let mut g1 = accounts.get(smaller).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:140:26
[INFO] [stdout]     |
[INFO] [stdout] 140 |             let mut g2 = accounts.get(larger).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:141:16
[INFO] [stdout]     |
[INFO] [stdout] 141 |             if accounts.get(src_id).unwrap().balance < amount {
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:147:26
[INFO] [stdout]     |
[INFO] [stdout] 147 |             let srcAcc = accounts.get_mut(src_id).unwrap();
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `srcAcc` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:147:17
[INFO] [stdout]     |
[INFO] [stdout] 147 |             let srcAcc = accounts.get_mut(src_id).unwrap();
[INFO] [stdout]     |                 ^^^^^^ help: convert the identifier to snake case: `src_acc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:148:27
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let destAcc = accounts.get_mut(dest_id).unwrap();
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `destAcc` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:148:17
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let destAcc = accounts.get_mut(dest_id).unwrap();
[INFO] [stdout]     |                 ^^^^^^^ help: convert the identifier to snake case: `dest_acc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:166:29
[INFO] [stdout]     |
[INFO] [stdout] 166 |                 let mut g = accounts.get(i as usize).unwrap().lock.lock().unwrap();
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:167:41
[INFO] [stdout]     |
[INFO] [stdout] 167 |                 println!("ID# {} | {}", accounts.get(i as usize).unwrap().accountID, accounts.get(i as usize).unwrap().balance);
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:167:86
[INFO] [stdout]     |
[INFO] [stdout] 167 |                 println!("ID# {} | {}", accounts.get(i as usize).unwrap().accountID, accounts.get(i as usize).unwrap().balance);
[INFO] [stdout]     |                                                                                      ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:173:47
[INFO] [stdout]     |
[INFO] [stdout] 173 |             println!("Success: {} Fails: {}", num_succ, num_fail);
[INFO] [stdout]     |                                               ^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/ledger/bank.rs:173:57
[INFO] [stdout]     |
[INFO] [stdout] 173 |             println!("Success: {} Fails: {}", num_succ, num_fail);
[INFO] [stdout]     |                                                         ^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `recordSucc` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:183:8
[INFO] [stdout]     |
[INFO] [stdout] 183 |     fn recordSucc(&mut self, message: String) {
[INFO] [stdout]     |        ^^^^^^^^^^ help: convert the identifier to snake case: `record_succ`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `recordFail` should have a snake case name
[INFO] [stdout]    --> src/ledger/bank.rs:197:8
[INFO] [stdout]     |
[INFO] [stdout] 197 |     fn recordFail(&mut self, message: String) {
[INFO] [stdout]     |        ^^^^^^^^^^ help: convert the identifier to snake case: `record_fail`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `producer_consumer` (bin "producer_consumer" test) due to 21 previous errors; 38 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "bfcc018b1f0573e05a9d837b616de9c9ff52d1c4742ed1be4298f41e54cb0796", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bfcc018b1f0573e05a9d837b616de9c9ff52d1c4742ed1be4298f41e54cb0796", kill_on_drop: false }`
[INFO] [stdout] bfcc018b1f0573e05a9d837b616de9c9ff52d1c4742ed1be4298f41e54cb0796
